# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding field 'SistemaEstorias.estoria_pendente'
        db.add_column('suporte_sistemaestorias', 'estoria_pendente', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True), keep_default=False)


    def backwards(self, orm):
        
        # Deleting field 'SistemaEstorias.estoria_pendente'
        db.delete_column('suporte_sistemaestorias', 'estoria_pendente')


    models = {
        'auth.group': {
            'Meta': {'object_name': 'Group'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'suporte.contabilidade': {
            'Meta': {'object_name': 'Contabilidade'},
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
            'fone': ('django.db.models.fields.CharField', [], {'max_length': '14', 'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'municipio': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Municipio']"}),
            'nome': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'uf': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.UF']"})
        },
        'suporte.departamentos': {
            'Meta': {'object_name': 'Departamentos'},
            'departamento': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        'suporte.ecf': {
            'Meta': {'object_name': 'Ecf'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'marca': ('django.db.models.fields.CharField', [], {'max_length': '30'})
        },
        'suporte.ecfmodelo': {
            'Meta': {'object_name': 'EcfModelo'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'marca': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Ecf']"}),
            'modelo': ('django.db.models.fields.CharField', [], {'max_length': '30'})
        },
        'suporte.entidade': {
            'Meta': {'ordering': "('nome',)", 'object_name': 'Entidade'},
            'ativo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'bairro': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
            'cep': ('django.db.models.fields.CharField', [], {'max_length': '9', 'null': 'True', 'blank': 'True'}),
            'cnpj': ('django.db.models.fields.CharField', [], {'max_length': '18', 'blank': 'True'}),
            'complemento': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
            'contabilidade': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Contabilidade']", 'null': 'True', 'blank': 'True'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
            'endereco': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'fone1': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'fone2': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
            'grupo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.GrupoEntidade']", 'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'ie': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'modulo': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['suporte.Modulo']", 'symmetrical': 'False'}),
            'municipio': ('smart_selects.db_fields.ChainedForeignKey', [], {'to': "orm['suporte.Municipio']"}),
            'nfe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'nome': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'nome_fantasia': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
            'numero': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
            'paf_ecf': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'regime_tributacao': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'sped_fiscal_icms_ipi': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'sped_fiscal_pis_cofins': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'suporte_classificacao': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'tipo': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'uf': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.UF']"})
        },
        'suporte.entidadeecf': {
            'Meta': {'object_name': 'EntidadeECF'},
            'caixa_numero': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
            'ecf_numero': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
            'ecf_numero_serie': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'entidade': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Entidade']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'marca': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Ecf']"}),
            'modelo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.EcfModelo']"})
        },
        'suporte.entidadepessoa': {
            'Meta': {'object_name': 'EntidadePessoa'},
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
            'entidade': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Entidade']"}),
            'fone': ('django.db.models.fields.CharField', [], {'max_length': '14', 'null': 'True', 'blank': 'True'}),
            'funcao': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'pessoa': ('django.db.models.fields.CharField', [], {'max_length': '30'})
        },
        'suporte.formaatendimento': {
            'Meta': {'object_name': 'FormaAtendimento'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'tipo': ('django.db.models.fields.CharField', [], {'max_length': '15'})
        },
        'suporte.grupoentidade': {
            'Meta': {'object_name': 'GrupoEntidade'},
            'grupo': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        'suporte.ideias': {
            'Meta': {'ordering': "['prioridade']", 'object_name': 'Ideias'},
            'departamento': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Departamentos']"}),
            'descricao': ('django.db.models.fields.TextField', [], {'max_length': '500'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'prioridade': ('django.db.models.fields.PositiveIntegerField', [], {})
        },
        'suporte.link': {
            'Meta': {'object_name': 'Link'},
            'computador': ('django.db.models.fields.CharField', [], {'max_length': '15', 'blank': 'True'}),
            'entidade': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Entidade']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'observacao': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'senha': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
            'tipo': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
            'usuario': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
        },
        'suporte.modulo': {
            'Meta': {'object_name': 'Modulo'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'modulo': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'modulo_cod': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'})
        },
        'suporte.municipio': {
            'Meta': {'object_name': 'Municipio'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'municipio': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'uf': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.UF']"})
        },
        'suporte.sistema': {
            'Meta': {'object_name': 'Sistema'},
            'ativo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'descricao': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nome': ('django.db.models.fields.CharField', [], {'max_length': '20'})
        },
        'suporte.sistemaestorias': {
            'Meta': {'object_name': 'SistemaEstorias'},
            'data_cadastro': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
            'data_conclusao': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
            'descricao': ('django.db.models.fields.TextField', [], {'max_length': '1000'}),
            'entidade': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Entidade']", 'null': 'True', 'blank': 'True'}),
            'estoria_pendente': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'modulo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Modulo']", 'null': 'True', 'blank': 'True'}),
            'prioridade': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'sistema': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Sistema']"}),
            'situacao': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'solicitacao_cliente': ('django.db.models.fields.TextField', [], {'max_length': '1000', 'null': 'True', 'blank': 'True'}),
            'tipo': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'usuario_cadastro': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'usuario_estoria_cadastrou'", 'null': 'True', 'to': "orm['auth.User']"})
        },
        'suporte.sistemaestoriastarefas': {
            'Meta': {'ordering': "['situacao']", 'object_name': 'SistemaEstoriasTarefas'},
            'SistemaEstorias': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.SistemaEstorias']"}),
            'data_cadastro': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
            'descricao': ('django.db.models.fields.TextField', [], {'max_length': '500'}),
            'estimativa_horas': ('django.db.models.fields.TimeField', [], {'null': 'True', 'blank': 'True'}),
            'estimativa_pontos': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'realidade_horas': ('django.db.models.fields.TimeField', [], {'null': 'True', 'blank': 'True'}),
            'situacao': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
            'sprint': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.SistemaSprint']", 'null': 'True', 'blank': 'True'}),
            'tela': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Tela']", 'null': 'True', 'blank': 'True'}),
            'titulo': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'usuario_cadastro': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'usuario_sistema_estoria_tarefa_cadastro'", 'null': 'True', 'to': "orm['auth.User']"}),
            'usuario_desenvolvimento': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'usuario_sistema_estoria_tarefa_desenvolvimento'", 'null': 'True', 'to': "orm['auth.User']"}),
            'usuario_testes': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'usuario_sistema_estoria_tarefa_testes'", 'null': 'True', 'to': "orm['auth.User']"})
        },
        'suporte.sistemasprint': {
            'Meta': {'object_name': 'SistemaSprint'},
            'data_cadastro': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
            'data_inicio': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
            'data_termino': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'observacoes': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'sistema': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Sistema']"}),
            'versao': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.SistemaVersao']"})
        },
        'suporte.sistemaversao': {
            'Meta': {'object_name': 'SistemaVersao'},
            'data_liberacao': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'descricao': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'script': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'script_bd': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'sistema': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Sistema']"}),
            'versao': ('django.db.models.fields.CharField', [], {'max_length': '15'})
        },
        'suporte.sistemaversaoalteracoes': {
            'Meta': {'object_name': 'SistemaVersaoAlteracoes'},
            'data': ('django.db.models.fields.DateTimeField', [], {}),
            'data_criacao': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'descricao': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'modulo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Modulo']"}),
            'sistema': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Sistema']"}),
            'tela': ('smart_selects.db_fields.ChainedForeignKey', [], {'to': "orm['suporte.Tela']"}),
            'usuario': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
            'versao': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.SistemaVersao']"})
        },
        'suporte.tarefa': {
            'Meta': {'ordering': "['concluida', 'prioridade', 'data_criacao']", 'object_name': 'Tarefa'},
            'concluida': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}),
            'data_conclusao': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'data_criacao': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'departamento': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Departamentos']"}),
            'descricao': ('django.db.models.fields.TextField', [], {'max_length': '500'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'prioridade': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'usuario': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'tarefa_usuario'", 'null': 'True', 'to': "orm['auth.User']"})
        },
        'suporte.tela': {
            'Meta': {'ordering': "['nome']", 'object_name': 'Tela'},
            'codigo': ('django.db.models.fields.IntegerField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'modulo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Modulo']"}),
            'nome': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'})
        },
        'suporte.ticket': {
            'FormaAtendimento': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.FormaAtendimento']", 'null': 'True', 'blank': 'True'}),
            'Meta': {'object_name': 'Ticket'},
            'data_hora_abertura': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'data_hora_fechamento': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'entidade': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Entidade']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'modulo': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Modulo']", 'null': 'True', 'blank': 'True'}),
            'pessoa': ('smart_selects.db_fields.ChainedForeignKey', [], {'to': "orm['suporte.EntidadePessoa']"}),
            'tela': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Tela']", 'null': 'True', 'blank': 'True'}),
            'texto_fechamento': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'texto_solicitacao': ('django.db.models.fields.TextField', [], {'default': "''"}),
            'usuario_abertura': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'usuario_abertura'", 'to': "orm['auth.User']"}),
            'usuario_fechamento': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'usuario_fechamento'", 'null': 'True', 'to': "orm['auth.User']"})
        },
        'suporte.ticketatendimento': {
            'FormaAtendimento': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.FormaAtendimento']", 'null': 'True', 'blank': 'True'}),
            'Meta': {'object_name': 'TicketAtendimento'},
            'data_criacao': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'data_hora_inicio': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'data_hora_termino': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'texto_atendimento': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'ticket': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['suporte.Ticket']"}),
            'usuario': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'usuario_atendimento'", 'null': 'True', 'to': "orm['auth.User']"})
        },
        'suporte.uf': {
            'Meta': {'object_name': 'UF'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'uf_nome': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
            'uf_sigla': ('django.db.models.fields.CharField', [], {'max_length': '2'})
        }
    }

    complete_apps = ['suporte']
